package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: juliofarah
 * Date: 9/23/13
 * Time: 5:18 PM
 * To change this template use File | Settings | File Templates.
 */
public class Book {

    private String author;
    private String title;
    private Boolean reserved;

    public Book(){

    }

    public Book(String author, String title){
        this.author = author;
        this.title = title;
        this.reserved = false;
    }

    public String getAuthor() {
        return author;
    }

    public Boolean isReserved() {
        return reserved;
    }

    public String toString(){
        return "Title: " + this.title + ". " + "Author: " + this.author + ".\n";
    }

    public String getTitle(){
        return title;
    }

    public void reserve() {
        this.reserved = true;
    }
}
